<div ng-controller="ProductcatCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/productcat/list">{{'productcat'| translate}}{{'List'|translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/productcat/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'id'|translate}}"  ng-model="id">
          <input type="text"  placeholder="{{'Name'|translate}}"  ng-model="name">
          <button class="sui-btn btn-primary" type="submit" ng-click="ProductcatGet()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'title'|translate}}</th>
                <th>{{'product_num'|translate}}{{'price'|translate}}</th>
                <th>{{'ordinary'|translate}}</th>
                <th>{{'bronze'|translate}}</th>
                <th>{{'silver'|translate}}</th>
                <th>{{'gold'|translate}}</th>
                <th>{{'platinum'|translate}}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in productcats">
        
                <td>{{list.name}}</td>
           
                <td>
                	{{list.product_num}}
                </td>
                <td>
                	{{list.ordinary}}
                </td>
                <td>{{list.bronze}}</td>
                <td>{{list.silver}}</td>
                <td>{{list.gold}}</td>
                <td>{{list.platinum}}</td>
                <td>
                    <a href="#/productcat/add?id={{list.id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <a href="#/productcat/info?id={{list.id}}" class="sui-btn btn-primary">{{'info'|translate}}</a>
                    <a ng-click="productcatDelte(list.id)" class="sui-btn btn-danger">{{'delete'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="productcatsTotal" get-data="ProductcatGet(pageNo)"></pager>
    <!-- 分页end -->
</div>
